{% extends 'base.html' %}

{% block content %}
    <ul class="media-list">
                {% for article_obj in article_list %}
                    <li class="media">
                        <a href="/{{ username }}/article/{{ article_obj.pk }}/"><h4 class="media-heading">{{ article_obj.title }}</h4></a>
                        <div class="media-left">
                            <a href="#">
                                <img class="media-object imgs" src="{% url 'media' article_obj.blog.userinfo.avatar %}"
                                     alt="...">
                            </a>
                        </div>
                        <div class="media-body">
                            {{ article_obj.desc }}
                        </div>
                        <div class="pull-right">
                            <span>posted&nbsp;&nbsp;</span>
                            <span>@&nbsp;&nbsp;</span>
                            <span>{{ article_obj.create_time |date:'Y-m-d' }}&nbsp;</span>
                            <span>{{ article_obj.blog.userinfo.username }}&nbsp;&nbsp;</span>
                            <span><span class="glyphicon glyphicon-comment"></span>评论({{ article_obj.comment_num }})&nbsp;&nbsp;</span>
                            <span><span class="glyphicon glyphicon-thumbs-up"></span>点赞({{ article_obj.up_num }})</span>
                            <span><a href="#"></a>编辑</span>
                        </div>
                    </li>
                    <hr>
                {% endfor %}
            </ul>
{% endblock %}